/*
 * @Date: 2021-09-12 19:21:05
 * @Author: Acckno1
 * @LastEditTime: 2021-09-12 19:22:59
 * @Description: 
 */
#include <iostream>
#include <cstring>
#include <algorithm>

using namespace std;

float m[3], nums[3][3];
char res[3];

int main() {
    for (int i = 0; i < 3; i ++ ) 
        for (int j = 0; j < 3; j ++ ) 
            cin >> nums[i][j];
    
    for (int i = 0; i < 3; i ++ ) {
        m[i] = nums[i][0];
        res[i] = 'W';
        for (int j = 1; j < 3; j ++) {
            if (nums[i][j] > m[i]) {
                m[i] = nums[i][j];
                res[i] = j == 1 ? 'T' : 'L';
            }
        }
    }
    float sum = 1;
    for (int i = 0; i < 3; i ++ ) 
        sum *= m[i];
    sum = (sum * 0.65 - 1) * 2;
    printf("%c %c %c %.2f\n", res[0], res[1], res[2], sum);
    
    return 0;
}